package com.javasm.crm.service.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.crm.domin.criteria.repositrory.OutRepoCriteria;
import com.javasm.crm.domin.entity.repository.Outrepo;
import com.javasm.crm.domin.entity.repository.Outrepogoods;
import com.javasm.crm.domin.vo.repository.OutrepoVO;
import com.javasm.crm.domin.vo.repository.OutrepogoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lirui
 * @since 2021-07-16
 */
public interface IOutrepoService extends IService<Outrepo> {

    boolean generateOutRepo(Integer id, String userName);

    Page<Outrepo> getOutRepo(OutRepoCriteria outRepoCriteria);

    List<OutrepogoodsVO> getGoods(Integer applyId);

    boolean enter(OutrepoVO outrepoVO);


    boolean approve(Outrepo outrepo, String userName);

    boolean repoOut(Integer id);
}
